<?php

try
{
  //register the autoloader
  require_once 'lib/autoloader/ProjectAutoloader.php';
  ProjectAutoloader::getInstance('cache/autoloader/autoloader.dat')->register();
  
  $dispatcher = new Dispatcher();
  $dispatcher->setControllerPath('app/controllers');
  $dispatcher->setViewPath('app/views');
  $dispatcher->dispatch();
  
  
} 
catch ( Exception $e )
{
  die("<h1>Internal Server Error</h1><pre>{$e}</pre>");
}



